//连数据库
const mongoose = require("mongoose")
//远程通信，找到mongodb数据库
mongoose.connect("mongodb://127.0.0.1:27017/examinationApp",(error)=>{
    if (!error) {
        console.log("MongoDB连接成功");
    } else {
        console.log("MongoDB连接失败",error);
    }
})